package com.zhangdi.demo.jdbc.mapper;

import com.zhangdi.demo.jdbc.entity.Industry;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface IndustryMapper {
    List<Industry> findAll();
    List<Industry> findAllLevels();
    List<Industry> findAllLevelsByLevelType(int levelType);
    List<Industry> findParentsByCurrent(long id);
    List<Industry> findBrothers(long id, long pid);
    List<Industry> childrenByCurrent(long id, int level);

}
